package com.fuyq._07mysql10._07mysql10.service;

import com.fuyq._07mysql10._07mysql10.dao.T1Dao;
import com.fuyq._07mysql10._07mysql10.po.T1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class T1Service {

    @Autowired
    T1Dao t1Dao;

    public int save(Integer id){
        return t1Dao.save(new T1(id));
    }

    public T1 find(Integer id){
        return t1Dao.query(id);
    }

}
